package com.hehua.web.decorator.demo3;

public class PersonClient {
    public static void main(String[] args) {
        Person person = new Person() {{
            setName("小城");
        }};
        Jack jack = new Jack();
        BigTrouser bigTrouser = new BigTrouser();
        jack.setPerson(person);
        bigTrouser.setPerson(jack);
        bigTrouser.show();
    }
}
